package com.rc.saas.tenant.mapper.order;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.order.OrderDetail;
import com.rc.saas.tenant.model.order.OrderDetailExample;
import com.rc.saas.tenant.search.order.OrderDetailSearch;
import com.rc.saas.tenant.vo.order.OrderDetailPrintVo;
import com.rc.saas.tenant.vo.order.OrderDetailResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDetailMapper extends BaseMapper<Long, OrderDetail, OrderDetailExample> {
    List<OrderDetailResult> searchByCondition(OrderDetailSearch orderDetailSearch);

    List<OrderDetailPrintVo> exportOrderDetail(OrderDetailSearch orderDetailSearch);

    List<OrderDetailPrintVo> selectOperatorPowerTimePeriod(@Param("elecStationId") Long elecStationId,
                                                           @Param("begin") String begin, @Param("end") String end,@Param("bsBegin") String bsBegin,
                                                           @Param("bsEnd") String bsEnd,@Param("bsBeginHHmm") String bsBeginHHmm);

    void updateOrderDetail(OrderDetailResult orderDetailResult);
}
